<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name:'',
				email:'',
				password:'',
				password_confirmation:''
			}
		},
		methods: {
			// 执行注册
			submit(){
			//1.表单验证
			//2.准备提交参数
			const params = {
				name:this.name,
				email:this.email,
				password:this.password,
				password_confirmation:this.password_confirmation
			}
			//3.请求API，执行注册
			const res = this.$u.api.authRegister(params)
			}
			//4.注册成功，重定向到登录（关闭register）
		}
	}
</script>

<style>

</style>
